<div appBsModal #modal="bs-modal" class="modal fade" [ngClass]="modalExpandOb.className"  tabindex="-1" role="dialog" aria-labelledby="modal"
    aria-hidden="true" [config]="{backdrop: 'static'}">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header" >
                <h5 class="modal-title">
                    <span>{{title}}</span>
                </h5>
                <span class="pull-right">
                    <a class="btn btn-smallEx" (click)='modalExpandOb.modalExHandle("small")'>
                        <i class="bi bi-arrows-angle-expand" *ngIf="!modalExpandOb.isSmallEx"></i>
                        <i class="bi bi-arrows-angle-contract" *ngIf="modalExpandOb.isSmallEx"></i>
                    </a>
                    <a class="btn btn-fullscreen" (click)='modalExpandOb.modalExHandle("full")'>
                        <i class="bi bi-arrows-fullscreen" *ngIf="!modalExpandOb.isFullScreen"></i>
                        <i class="bi bi-fullscreen-exit" *ngIf="modalExpandOb.isFullScreen"></i>
                    </a>
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')"
                        [disabled]="saving">
                        <i aria-hidden="true" class="bi bi-x"></i>
                    </button>
                </span>
            </div>
            <div class="modal-body"  [busyIf]="loading">
                <div class="row margin-top-10">
                    <div class="col-sm-6">
                        <div class="form-group form-md-line-input form-md-floating-label no-hint">
                            <label>{{"Name" | localize}}</label>
                            <input class="form-control" type="text" name="name" [ngClass]="{'edited':data.name}" [(ngModel)]="data.name" required maxlength="50">
                        </div>
                        <div class="form-group form-md-line-input form-md-floating-label no-hint">
                            <label>PageSize</label>
                            <input class="form-control edited" type="number" name="pageSize" [(ngModel)]="data.pageSize" step="1" min="1">
                        </div>
                    </div>
    
                    <div class="col-sm-6">
                        <div class="form-group form-md-line-input form-md-floating-label no-hint">
                            <label>{{"AttachTo" | localize}}</label>
                            <select class="form-control edited" [(ngModel)]="data.pcOrMobile" name="pcOrMobile" >
                                <option value="{{op.value}}" *ngFor="let op of deviceTypes">{{op.name}}</option>
                            </select>
                        </div>
                        <div class="checkbox-list">
                            <div class="form-group">
                                <label for="editPageView_isActive" class="checkbox" >
                                    <input id="editPageView_isActive" type="checkbox"
                                        name="isActive"
                                        [(ngModel)]="data.isActive">
                                    <span></span>
                                    {{"ReleaseState" | localize}}
                                </label>
                            </div>
                        </div>
                    </div>
                </div>   
            
                <div class="form-group form-md-line-input form-md-floating-label no-hint">
                    <label>BodyView</label>
                    <input class="form-control" type="text" name="bodyView" [ngClass]="{'edited':data.bodyView}" [(ngModel)]="data.bodyView" required maxlength="250">
                </div>
            </div>
            <div class="modal-footer">
                <button [disabled]="saving" type="button" class="btn btn-default font-weight-bold"
                        (click)="close()">
                    {{"Cancel" | localize}}
                </button>
                <button *ngIf="['Pages.Administration.FrontendPageView.Create', 'Pages.Administration.FrontendPageView.Edit'] | permissionAny" 
                   class="btn btn-primary blue"  [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')" (click)="save()">
                   <i class="fa fa-save"></i>{{"Save" | localize}}
                </button>
            </div>
        </div>
    </div>